@import './animation';
@import './webase';
@import './color';
// @font-face {
//   font-family: 'syyh';
//   src: url('../font/syyh-normal.ttf')
// }
html,body,div,p,ul,li,textarea{
  margin:0;
  padding:0;
  box-sizing:border-box;
  -moz-box-sizing:border-box;
  -webkit-box-sizing:border-box; 
  font-family: 'arial'
}
li{
  list-style: none;
}
html,body,#app{
  height:100%;
}

#app{
  background:@bg;
}

#login{
  display: flex;
  width:100%;
  height:100%;
  align-items: center;
  // background-image:url('../image/bg.png');
  // background-repeat: no-repeat;
  // background-size: 100% 100%;
  position: relative;
  overflow: hidden;
  .role1,.role2,.role3{
    position: absolute;
  }
  .bg_img{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index: 1;
  }
  .role1{
    top:100px;
    right:380px;
    z-index: 2;
  }
  .role2{
    top:-265px;
    right:-120px;
    z-index: 2;
  }
  .role3{
    bottom:-265px;
    left:-185px;
    z-index: 2;
  }

  .login_box{
    width:440px;
    display: flex;
    align-items: center;
    flex-direction: column;
    background:white;
    margin:auto;
    padding:40px;
    border-radius: 8px;
    box-shadow:0 20px 70px rgba(0,0,0,.2);
    z-index: 3;
    position: relative;

    .login_logo{
      width:260px;
    }
    .login_error{
      height:24px;
      margin:5px 0;
      overflow: hidden;
      p{
        color:transparent
      }
      .show_error{
        color:#F56C6C;
        @show-error()
      }
    }
    .el-form{
      width:85%;
      .el-input__inner{
        height:50px;
        line-height:50px;
        padding-left:40px;
      }

      .el-form-item:nth-child(2){
        .el-input__inner{
          padding-right:110px;
        }
      }

      .el-input__icon{
        font-size:20px;
        line-height:50px;
        width:35px;
      }
      .el-button{
        width:100%;
        padding:17px 20px;
        margin-top:10px;
      }

      .forget{
        position: absolute;;
        right:0;
        top:15px;
        height:20px;
        line-height: 20px;
        padding:0 10px;
        cursor: pointer;
        color:#b0bac9;
        border-left:1px solid #b0bac9;
        &:hover{
          color:@blue;
        }
      }

      .registered_btn{
        color:@blue;
        cursor: pointer;
        float: right
      }
    }
  }

  .el-dialog__wrapper .el-dialog .el-dialog__body{
    padding:10px 20px;
    .input_title{
      font-size: 16px;
      color:@gray_title;
      padding-bottom:10px;
    }
    .input_warning{
      color:@gray_text;
      padding-top:15px;
      i{
        color:#ca0021;
        font-weight: bolder;
        padding:5px;
      }
    }
  }
}

.registered{
  width:100%;
  height:100%;
  display: flex;
  justify-content: center;
  align-items: center;
  .registered_part{
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
    width:500px;
    background:#fff;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding:30px 0;
    &>img{
      width:50%;
    }
    .el-form{
      width:70%;
      margin:auto;
      .el-form-item{
        margin-bottom:40px;
        position: relative;
        &:last-child{
          margin-bottom:20px;
        }
        .el-form-item__label{
          position: absolute;
          z-index: 99;
          width:80px;
          height:24px;
          line-height: 24px;
          top:13px;
          left:15px;
          border-right: 1px solid @input_right_line;
          text-align: justify;
          text-align-last: justify;
        }
        .el-input{
          .el-input__inner{
            background:@bg_input;
            padding-left:105px;
            height:50px;
            line-height: 50px;
          }
        }
      }
      .el-button{
        width:100%;
        padding:17px 20px;
      }
    }
    a{
      color:@blue;
      align-self: flex-start;
      margin-left:75px;
      font-size: 14px;
      cursor: pointer;
    }
  }
}

.el-container{
  height:100%;
}

.el-header{
  background:#fff;
  border-bottom:1px solid #ddd;
  z-index: 99;
  padding:0 35px;
}
.headerBar{
  display:flex;
  height:60px;
  line-height: 60px;
  justify-content: space-between;
  .navigation{
    display: flex;
    font-size: 14px;
    color:@black_text;
    img{
      margin-right: 36px;
    }
    .el-dropdown{
      margin-left:14px;
      i{
        margin-left:10px; 
      }
    }

    .server_title{
      margin-left:36px;
    }
  }
  .right_part{
    display: flex;
    align-items: center;
    .el-button{
      border:0;
      padding:5px;
      color:@black_text;
    }

    .back_home{
      width:20px;
      margin-right:15px;
      cursor: pointer;
    }
    .server_titl{
      font-size: 14px;
      color:@black_text;
    }
    a{
      font-size: 14px;
      color:@black_text;
      text-decoration: none;
      margin:2px 24px 0 36px;
    }

    .el-dropdown {
      font-size: 14px;
      cursor: pointer;
      span i {
        margin-left:5px;
      }
    }

    .line{
      height:25px;
      width:1px;
      background:#ddd;
      margin:0 15px;
    }
  }
}
.el-aside{
  background:#FFF;
  position: relative;
  
  .el-menu{
    background:transparent;
    border-right:0;
    .el-menu-item{
      color: @black_text;
      border-left:4px solid transparent;
      font-size: 16px;
      height:60px;
      line-height: 60px;
      i{
        color: @black_text;
      }
      &:hover{
        background:#EAEEFF;  
      }
    }
  
    .el-menu-item.is-active{
      background:#EAEEFF;
      border-left:4px solid @blue;
    }
  }

  .el-menu-vertical:not(.el-menu--collapse){
    width:240px;
  }
}

.el-main{
  position: relative;
  padding:24px;
  .el-breadcrumb{
    line-height:inherit;
    margin-bottom: 16px;
    .el-breadcrumb__item:first-child .el-breadcrumb__inner{
      color:@blue;
    }
  }

  .home-content{
    height:100%;
    padding:20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 12px 0 #dfe2e9;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    img{
      position: absolute;
    }
    .quote{
      top:60px;
      left:40px;
    }
    .plant{
      width:140px;
      bottom:30px;
      right:60px;
    }
    .top_cont{
      padding:0 20px;
      font-family: 'arial';
      font-size:40px;
      color:@blue;
      z-index: 2;
      width:80%;
      margin:0 auto;
      margin-bottom:20px;
    }
    .bottom_cont{
      z-index: 2;
      padding:0 20px;
      display: flex;
      justify-content: space-between;
      width:80%;
      margin:0 auto;
      .left_cont{
        font-size:16px;
        line-height: 28px;
        color:@gray_text;
        .pre{
          font-family: 'arial'; 
          margin-top:0;
          margin-bottom:40px;
        }
      }

      .small_pre{
        display: none
      }

      .right_cont{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        p{
          span{
            display: inline-block;
            &:first-child{
              width:150px;
              color:@blue;
              i{
                margin-right:10px;
                color:@gray_text
              }
            }
          }
        }
      }
    }
  }
  .select-box{
    width:38px;
    height:36px;
    position: absolute;
    top:30px;
    left:0;
    border-radius:0px 18px 18px 0px;
    text-align: center;
    background:#1b79ff;

    .arrow-icon{
      width:9px;
      height:9px;
      border-top:2px solid #ddd;
      border-right:2px solid #ddd;
      @arrow-left();
      transform: rotate(45deg);
      -webkit-transform: rotate(45deg);
      display: inline-block;
      margin-top:13px;
    }

    .arrow-right{
      @arrow-right();
      transform: rotate(225deg);
      -webkit-transform: rotate(225deg);
    }
  }

  .el-pagination{
    position: absolute;
    bottom:10px;
  }

  .event-table{
    height:95%;
    background:#fff;
    padding:20px;
    padding-bottom:50px;
    border-radius: 5px;
    position: relative;
    .refresh{
      overflow: hidden;
      position: absolute;
      width:100%;
      padding:20px;
      top:0;
      left:0;
      z-index: 99;
      background:#fff;

      .search_part{
        float: right;
        display: flex;
        .el-input{
          margin-right:10px;
        }
      }
    }
    .contract-address{
      height:21px;
      margin:10px 0;
      color:#909399;
      float: right;
      width: 100%;
      text-align: right;
    }

    .el-table{
      background: transparent;
      height:100%;
      padding-top:52px;

      &::before{
        height:0;
      }
      .el-table__empty-block{
        background:white;
        height:auto; 
      }
      .el-table__body-wrapper{
        overflow-x: hidden;
        overflow-y: auto;
        height:100%;
        padding-bottom: 50px;
        &::-webkit-scrollbar{
          width:10px;
          height:1px;
        }
        &::-webkit-scrollbar-thumb{
          border-radius: 10px;
          background: #ddd;
        }
        &::-webkit-scrollbar-track{
          border-radius: 10px;
          border-radius: 10px;
          background: #ededed;
        }
        .el-table__body{
          tr:hover{
            background: #fff;
          }
          .cell {
            word-break: inherit !important
          }
          tbody tr .el-table__expanded-cell{
            background: @light_gray;
            &:hover{
              background: @light_gray;
            }
          }
        }

        tbody tr td .el-form .el-form-item{
          margin-bottom:0;
          .el-form-item__label{
            width:140px;
          }
          .el-form-item__content{
            color:@gray_text
          }
        }
        .el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{
          color:@blue;
          font-weight: bold;
          border-right-color:transparent;
          border-left-color:transparent;
          border-bottom:2px solid @blue;
        }
        .el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{
          display: none;
        }
      }
      td{
        color:@black_text;
      }
      .has-gutter tr th{
        background:@light_gray;
        color:@black_text;
        font-size: 14px;
        font-weight: 100;
      }
    }
  }
}

.topic .el-table tbody tr td:nth-child(2){
  color:@blue;
}

.group  .el-table{
  padding-top:16px !important;
  tr td .clee i {
    color:@blue;
  }
}

.block .el-table tr td{
  &:nth-child(1) {
    color:@blue
  }
  &:last-child span {
    color:@blue;
    cursor: pointer;
  }
}

.subcription .el-table{
    padding-top:16px !important;
}

.searchBox{
  margin:20px 0;
  text-align: right;
  .el-input{
    width:200px;
  }
}

.el-button--primary{
  background:@blue;
}
.el-table__expand-icon>.el-icon{
  font-size: 16px;
  font-weight: bold;
  margin-top:-7px;
}

.el-submenu__title{
  padding-left:24px !important;
  color:@black_text !important;
  font-size: 16px !important;
}

.el-submenu .el-menu-item{
  padding-left:52px !important;
  color:@black_text !important;
}

.setPart{
  max-width:870px;
  background:#fff;
  height:100%;
  margin:auto;
  box-shadow: 0 4px 12px 0 #dfe2e9;
  padding:20px;
  .setContent{
    max-width:870px;
    margin:auto;
    h3{
      margin-top:0;
      padding-bottom:10px;
      border-bottom:1px solid #EBEEF5
    }
    .login_part {
      span{
        display:inline-block;
        margin:10px;
      }
      .midify{
        font-size: 12px;
        cursor: pointer;
        color:#2d5f9e;
        text-decoration: none;
      }
    }
 
  }
}

.servers{
  max-width:1000px;
  margin:auto;
  height: 100%;
  .top_part{
    position: fixed;
    top:0;
    left:0;
    background:#fff;
    width:100%;
    box-shadow: 0 2px 2px #ddd;
  }
  .headerBar{
    width:1000px;
    margin:auto;
    padding:0 20px;
    .el-dropdown{
      margin-right:22px;
    }
  }
  .title{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding:8px 10px;
    margin-bottom:15px;
    span{
      color:@gray_title;
      font-size: 20px;
    }
    i{
      color:@blue;
      font-weight: bolder;
      cursor: pointer;
      padding:8px;
      background:@light_blue;
    }
  }

  .cont_part{
    padding:70px 40px 20px;
    height: 100%;
    .back{
      font-size: 14PX;
      color:@gray_text;
      padding:10px;
      cursor: pointer;
    }
    .table_part{
      background:#fff;
      padding:20px;
      height:80%;
      .el-table__header-wrapper .el-table__header .has-gutter tr th{
        background:@light_gray
      }
    }
  }
  .table_icon{
    margin:0 5px;
    cursor: pointer;
    font-size: 16px;
    color:@bg_blue;
  }
  .el-dialog{
    width:600px;
    .el-dialog__body{
      .el-form{
        .el-form-item{
          .el-form-item__content{
            .el-select{
              width:100%;
            }
          }
        }
      }
    }
  }
}

#version{
  .version_infor{
    height:30px;
    line-height: 30px;
    font-size: 12px;
    .version_title{
      display: inline-block;
      width:100px;
    }
  }
}

@media screen and (max-width:1700px){
  .el-main .home-content{
    .top_cont,.bottom_cont{
      width:90%;
    }
  } 
}

@media screen and (max-width:1600px){
  .el-main .home-content{
    .top_cont,.bottom_cont{
      width:100%;
      .right_cont{
        width:600px;
      }
    }
  } 
}

@media screen and (max-width:1350px){
  .el-main .home-content{

    .bottom_cont{
      flex-direction: column;
      .big_pre{
        display: none
      }
      .small_pre{
        display: block;
        margin-bottom:20px !important;
        .pre{
          margin-bottom:20px;
        }
      }
      .right_cont{
        width:100%;
      }
    }
  }
   
}
